package crp.extensions.scy.sso;


import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.jboss.resteasy.annotations.jaxrs.QueryParam;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/lyuapServer")
@RegisterRestClient(configKey = "scy.sso.sso-sdk")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface SCYSSORestClient {

    @GET
    @Path("/serviceValidate")
    String serviceValidate(@QueryParam("ticket") String ticket, @QueryParam("service") String service);

}
